package com.challenge.smsservice.studentmanage.service.impl;

import com.challenge.smsbase.Service.impl.GenericManagerImpl;
import com.challenge.smsdao.studentmanage.dao.GradeDao;
import com.challenge.smsdao.studentmanage.domain.Grade;
import com.challenge.smsservice.studentmanage.service.GradeManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.transaction.Transactional;

/**
 * @author shaoyunfei
 *
 * implementation interface
 */

@Transactional
@Component
public class GradeManagerImpl extends GenericManagerImpl<Grade,Long> implements GradeManager {
    //inherit GenericManagerImpl
    GradeDao gradeDao;

    /**
     * setGradeDao
     * @param gradeDao
     */
    @Autowired
    public void setGradeDao(GradeDao gradeDao) {
        this.gradeDao = gradeDao;
        this.dao = this.gradeDao;
    }
}
